package org.mriassl.service.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;

@MapperScan("org.mriassl.service.user.mapper")
@SpringCloudApplication
public class UserServiceApplication implements CommandLineRunner {
	
	public static void main(String[] args) {
		String argsstr = "";
		if(args !=null && args.length>0){
			StringBuilder sbf = new StringBuilder();
			for(String arg : args){
				sbf.append(arg).append(";");
			}
			argsstr = sbf.toString();
		}
		System.out.println(args.length+"   "+argsstr);
		SpringApplication.run(UserServiceApplication.class, args);
	}

	@Override
	public void run(String... arg0) throws Exception {
		System.out.println("server is running!");
	}
}
